<template>
  <view class="page-wrapper page-space">
    必须有指定权限才能访问的页面
    <view class="demo-code">
      <view>mustHasPermit()</view>
    </view>
    或
    <view class="demo-code">
      <view>mustHasPermit([
        <view style="padding-left: 1em">'/auth/user/create',</view>
        <view style="padding-left: 1em">'/auth/user/update'</view>
        ])</view>
    </view>
  </view>
</template>

<script lang="ts" setup>
import {mustHasPermit} from "@/store/account";

mustHasPermit(['/auth/user/create', '/auth/user/update']);

</script>

<style lang="scss">
@import "../index.css";
</style>